package com.lzy.product.apis.impl;

import com.lzy.product.apis.ProductImageTextServiceApi;
import com.lzy.product.dtos.ProductImageTextDto;
import com.lzy.product.service.ProductImageTextService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by WIN7 on 2017/12/2.
 */
@Service
public class ProductImageTextServiceApiImpl implements ProductImageTextServiceApi {

    @Autowired
    ProductImageTextService productImageTextService;

    @Override
    public Long insert(ProductImageTextDto dto) {
        return productImageTextService.insert(dto);
    }

    @Override
    public Boolean update(ProductImageTextDto dto) {
        return productImageTextService.update(dto);
    }

    @Override
    public Boolean delete(Long id) {
        return productImageTextService.delete(id);
    }

    @Override
    public Boolean remove(Long id) {
        return null;
    }

    @Override
    public ProductImageTextDto findById(Long id) {
        return productImageTextService.findById(id);
    }

    @Override
    public List<ProductImageTextDto> query(ProductImageTextDto dto) {
        return productImageTextService.query(dto);
    }
}
